<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" href="css/bootstrap.css" />
</head>
<body align="center" method="post">
		<form action="list.jsp" method="post">
			<h1>请输入修改信息</h1>
			<table class="table table-striped table-hover table-condensed " align="center" style="color: #00FF00;">
				<tr>
					<td><input type="hidden" name="id" value="${user.user_id }"></td>
				</tr>
				<tr>
					<td>用户名：</td>
					<td><input type="next" name="name" value="${user.user_nickname}"></td>
				</tr>
				<tr>
					<td>用户密码：</td>
					<td><input type="next" name="pwd" value="${user.user_password}"></td>
				</tr>
				<tr>
					<td>用户邮箱：</td>
					<td><input type="next" name="yh" value="${user.user_email}"></td>
				</tr>
				<tr>
					<td>用户性别：</td>
					<td><input type="radio" name="sex" value="男" ${user.user_sex=='男' ? "checked='checked'": ""}>男</input>
						<input type="radio" name="sex" value="女" ${user.user_sex=='女' ? "checked='checked'": ""}>女</input>
					</td>
				</tr>
				<tr>
					<td>用户地址：</td>
					<td>
						<select name="dzh">
							<option value="云南大理" ${user.user_address=='云南大理' ? "selected='selected'": ""}>云南大理</option>
							<option value="云南昆明" ${user.user_address=='云南昆明' ? "selected='selected'": ""}>云南昆明</option>
							<option value="云南丽江" ${user.user_address=='云南丽江' ? "selected='selected'": ""}>云南丽江</option>
							<option value="云南海文科技" ${userBean.user_address=='云南海文科技' ? "selected='selected'": ""}>云南海文科技</option>
						</select>
					</td>
				</tr>
				<tr>
					<td>用户爱好：</td>
					<td>
					    <input type="checkbox" name="ah" value="看书" ${user.user_hobby=='看书' ? "checked='checked'": ""}>看书</input>
						<input type="checkbox" name="ah" value="运动" ${user.user_hobby=='运动' ? "checked='checked'": ""}>运动</input>
						<input type="checkbox" name="ah" value="睡觉" ${user.user_hobby=='睡觉' ? "checked='checked'": ""}>睡觉</input>
						<input type="checkbox" name="ah" value="编程" ${user.user_hobby=='编程' ? "checked='checked'": ""}>编程</input>
						<input type="checkbox" name="ah" value="学习" ${user.user_hobby=='学习' ? "checked='checked'": ""}>学习</input>
						<input type="checkbox" name="ah" value="游泳" ${user.user_hobby=='游泳' ? "checked='checked'": ""}>游泳</input>
						<input type="checkbox" name="ah" value="打篮球" ${user.user_hobby=='打篮球' ? "checked='checked'": ""}>打篮球</input>
					</td>
				</tr>
				<tr>
					<td></td>
					<td><a class="btn btn-danger" href="response.sendRedirect("list.do")">返回</a></td>
					<td><a class="btn btn-danger btn-xs" href="delete.do?id=${s.user_id }">删除</a></td>
					<td><a class="btn btn-danger" href="xg.do?id=${s.user_id }">修改</a></td>
				</tr>

			</table>
	</body>
</html>